﻿import { post, put, get, del } from "@/utils/hettpUtils/httpRequest";

export const tenantsColumns = [
  {
    title: "站点名称",
    dataIndex: "name",
  },
  {
    title: "站点域名",
    dataIndex: "realmName",
  },
  {
    title: "状态",
    dataIndex: "status",
    align: "center",
    scopedSlots: { customRender: "status" },
  },
  {
    align: "center",
    title: "操作",
    dataIndex: "action",
    scopedSlots: { customRender: "action" },
  },
];

export const addTenants = (parameter) => post("api/tenants/add", parameter);
export const deleteTenants = (parameter) =>
  del("api/tenants/delete", parameter);
export const updateTenants = (parameter) =>
  put("api/tenants/update", parameter);
export const getTenants = (parameter) => get("api/tenants/get", parameter);
export const queryTenantsList = (parameter) =>
  get("api/tenants/list", parameter);
export const queryTenantsPage = (parameter) =>
  post("api/tenants/pages", parameter);
